package mal.carbonization;

import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;

public class ItemBlockFuels extends ItemBlock {

	public ItemBlockFuels(int par1, Block block) {
		super(par1);
		this.setHasSubtypes(true);
	}
	
	public int getMetadata(int par1)
	{
		return par1;
	}
	
	public String getItemNameIS(ItemStack itemstack) 
	{
		String name = "";
		switch(itemstack.getItemDamage()) 
		{
		case 0: 
			name = "peat";
			break;
		case 1: 
			name = "lignite"; 
			break;
		case 2:
			name = "sBituminous";
			break;
		case 3:
			name = "bituminous";
			break;
		case 4:
			name = "anthracite";
			break;
		case 5:
			name = "graphite";
			break;
		default: name = "blarg";
		}
		return getItemName() + "." + name;
	}

}
